import request from '@/utils/request'

// 查询发货单列表
export function listDeliveryOrder(query) {
  return request({
    url: '/kanban/deliveryOrder/list',
    method: 'get',
    params: query
  })
}

// 查询发货单详情
export function getDeliveryOrder(id) {
  return request({
    url: '/kanban/deliveryOrder/' + id,
    method: 'get'
  })
}

// 新增发货单
export function addDeliveryOrder(data) {
  return request({
    url: '/kanban/deliveryOrder',
    method: 'post',
    data: data
  })
}

// 修改发货单
export function updateDeliveryOrder(data) {
  return request({
    url: '/kanban/deliveryOrder',
    method: 'put',
    data: data
  })
}

// 删除发货单（支持批量）
export function delDeliveryOrder(ids) {
  return request({
    url: '/kanban/deliveryOrder/' + ids,
    method: 'delete'
  })
}